<UserControl x:Class="Supremacy.Client.Views.EmpireInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:scc="http://schemas.startreksupremacy.com/xaml/presentation"
             xmlns:wpfcontrib="http://schemas.codeplex.com/wpfcontrib/xaml/presentation"
             TextBlock.FontSize="14pt">
    <wpfcontrib:AutoGrid DataContext="{Binding Path=(scc:GameScreenViewBase.ClientContext).LocalPlayerEmpire, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type scc:GalaxyScreenView}}}">
        <wpfcontrib:AutoGrid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </wpfcontrib:AutoGrid.ColumnDefinitions>
        <TextBlock Foreground="{StaticResource HeaderTextBrush}"
                   HorizontalAlignment="Left"
                   Text="CREDITS:" />
        <TextBlock Foreground="{StaticResource DefaultTextBrush}"
                   HorizontalAlignment="Right"
                   Text="{Binding Path=Credits.CurrentValue, Mode=OneWay}" />
        <TextBlock Foreground="{StaticResource HeaderTextBrush}"
                   HorizontalAlignment="Left"
                   Text="CREDITS PER TURN:" />
        <TextBlock Foreground="{Binding Path=Credits.LastChange, Converter={StaticResource NetValueBrushConverter}, ConverterParameter={StaticResource DefaultTextBrush}}"
                   HorizontalAlignment="Right"
                   Text="{Binding Path=Credits.LastChange, Mode=OneWay}" />
        <TextBlock Foreground="{StaticResource HeaderTextBrush}"
                   HorizontalAlignment="Left"
                   Text="EMPIRE MORALE:" />
        <TextBlock Foreground="{Binding Path=AverageMorale, Mode=OneWay, Converter={StaticResource MoraleBrushConverter}}"
                   HorizontalAlignment="Right"
                   Text="{Binding Path=AverageMorale, Mode=OneWay, Converter={StaticResource MoraleConverter}, ConverterParameter=UpperCase}" />
        <TextBlock Foreground="{StaticResource HeaderTextBrush}"
                   HorizontalAlignment="Left"
                   Text="RESEARCH POINTS:" />
        <TextBlock Foreground="{StaticResource DefaultTextBrush}"
                   HorizontalAlignment="Right">
                    <TextBlock Text="{Binding Path=Research.CumulativePoints, Mode=OneWay}" />
                    <TextBlock Text="/" />
                    <TextBlock Text="{Binding Path=Research.Distributions.TotalValue, Mode=OneWay}" />
                  </TextBlock>
        <TextBlock Foreground="{StaticResource HeaderTextBrush}"
                   HorizontalAlignment="Left"
                   Text="INTELLIGENCE POINTS:" />
        <TextBlock Foreground="{StaticResource DefaultTextBrush}"
                   HorizontalAlignment="Right"
                   Text="0" />
    </wpfcontrib:AutoGrid>
</UserControl>
